{if $user->roles[0]=="superAdmin"}
<div>
	<a class="add" href="{plink System:addUser}">Přidat</a>
</div>

<br class="clear: both;" /><br />

{/if}

<table class="datagrid" style="width: 100%;">
	<tr>
		<th>Jméno</th>
		<th>Login</th>
		<th style="width: 64px;">Úpravy</th>
	</tr>

{foreach $users as $item}
<tr>
	<td>{$item["real_name"]}</td>
	<td>{$item["login"]}</td>
	<td>
		{if $user->roles[0]=="superAdmin" || $user_data["id_user"]==$item["id_user"]}
			<a class="edit" href="{plink System:editUser 'id'=>$item["id_user"]}">&nbsp;</a>
		{/if}
		{if $user->roles[0]=="superAdmin"}
			<a class="remove" onclick="return system.confirm('Opravdu si přejete smazat položku?');" href="{plink System:deleteUser  'id'=>$item["id_user"]}">&nbsp;</a>
	</td>
		{/if}
</tr>
{/foreach}
</table>